﻿using Dapper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SwaySway.Dao.Base
{
    public class SqlConn
    {

        readonly static string sqlconnection = DBConnectionManager.SqlConnection();  //数据库链接


        /// <summary>
        /// PS 
        /// </summary>
        /// <returns></returns>
        public static SqlConnection OpenConnectionStar()
        {
            SqlConnection connection = new SqlConnection(sqlconnection);
            connection.Open();
            return connection;
        }
    }
}
